
import 'dart:convert';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_li_ke_jie/entity/app_goods.dart';
import 'package:flutter_li_ke_jie/utils/log.dart';
import 'package:flutter_li_ke_jie/utils/navigator_util.dart';

import '../../style/common_color.dart';

///权益详情页面
class GoodsInfoPage extends StatefulWidget {
  final AppGoods appGoods;
  const GoodsInfoPage(this.appGoods,{Key? key}) : super(key: key);

  @override
  _GoodsInfoPageState createState() => _GoodsInfoPageState();
}

class _GoodsInfoPageState extends State<GoodsInfoPage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: _appBar(),
      body: Container(),
    );
  }

  //标题
  AppBar _appBar() {
    return AppBar(
      backgroundColor: Colors.white,
      leading: IconButton(//左边按钮
        icon: Icon(Icons.arrow_back,color: color_333,),
        onPressed: (){
          NavigatorUtil.pop(context);
        },
      ),
      elevation: 0,
      centerTitle: true,
      title: Text(widget.appGoods.name, style: const TextStyle(
          color: color_1e, fontSize: 20, fontWeight: FontWeight.bold),),
    );
  }
}
